<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

  </style>
</head>

<body>
  <ul>
    <li class="money">汪前</li>
    <li class="jin">金莲</li>
    <li class="da">大郎</li>
    <li class="dawusong">武松</li>
    <li class="dong">东北虎</li>
  </ul>
  <script src="./jquery-3.4.1.min.js"></script>
  <script>
    //1. [class] 获取含有某个属性的元素  
    $("ul li[class]").css("background", "red")
    //2. [class=da] 获取元素为固定属性值元素
    $("ul li[class=da]").css("background", "blue")
    //3. [class^=da] 获取以某个属性值开头的元素
    $("ul li[class^=da]").css("background", "orange")
    //4. [class$=da] 获取以某个属性值结尾的元素
    $("ul li[class$=g]").css("color", "green")
    //5. [class*=da] 获取以某个属性值中含有每个值的元素
    $("ul li[class*=o]").css("font-size", "30px")
    //6  [class!=da] 获取以某个属性值不为某个值的元素
    $("ul li[class!=money]").css("font-weight", "bold")


  </script>
</body>

</html>